<?php
namespace Api\Model;

class SmsModel
{
    /**
     * 短信发送记录
     * @param  [type] $server [description]
     * @param  [type] $mobile [description]
     * @param  [type] $text   [description]
     * @return [type]         [description]
     */
    public function log($service_provider, $mobile, $text, $status, $result)
    {
        $log = [
            'service_provider' => $service_provider,
            'mobile'           => $mobile,
            'text'             => $text,
            'result'           => $result,
            'status'           => $status,
            'add_time'         => CUR_DATETIME,
        ];
        return D('Sms_log')->add($log);
    }
}
